.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.product-detail-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* 产品图片区域 */
.product-image-section {
  text-align: center;
}

.main-product-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.thumbnail-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.thumbnail-item {
  width: 60px;
  height: 60px;
  border: 2px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
}

.thumbnail-item:hover {
  border-color: #1890ff;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 产品信息区域 */
.product-info-section {
  padding: 0 16px;
}

.product-title {
  margin-bottom: 8px !important;
  color: #262626;
  line-height: 1.4;
}

.product-subtitle {
  color: #8c8c8c;
  margin-bottom: 16px !important;
  font-size: 14px;
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.rating-text {
  color: #8c8c8c;
  font-size: 14px;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.current-price {
  font-size: 28px;
  font-weight: bold;
  color: #ff4d4f;
}

.original-price {
  font-size: 16px;
  color: #8c8c8c;
}

.discount-tag {
  font-size: 12px;
}

/* 产品特色 */
.features-section {
  margin-bottom: 24px;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feature-tag {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
  padding: 4px 8px;
  border-radius: 4px;
}

/* 规格选择 */
.specs-section {
  margin-bottom: 24px;
}

.spec-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.spec-select {
  min-width: 150px;
}

.quantity-input {
  width: 80px;
}

/* 操作按钮 */
.action-buttons {
  margin-bottom: 24px;
}

.button-group {
  width: 100%;
}

.add-cart-btn {
  flex: 1;
  height: 48px;
  border-color: #1890ff;
  color: #1890ff;
}

.buy-now-btn {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border: none;
}

.favorite-btn {
  height: 48px;
  color: #8c8c8c;
}

/* 服务保障 */
.service-section {
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-detail-container {
    padding: 12px;
  }

  .product-info-section {
    padding: 0;
  }

  .current-price {
    font-size: 24px;
  }

  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .spec-select {
    width: 100%;
  }

  .button-group {
    flex-direction: column;
    width: 100%;
  }

  .add-cart-btn,
  .buy-now-btn {
    width: 100%;
    margin-bottom: 8px;
  }
}

/* 移动端样式 */
.product-container {
  background-color: #fff;
  min-height: 100vh;
  position: relative;
  padding-bottom: 80px;
}

/* 顶部导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.back-btn,
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 8px;
}

/* 图片轮播区域 */
.image-section {
  margin-top: 44px;
  background-color: #f8f8f8;
}

.product-carousel {
  height: 375px;
}

.carousel-slide {
  height: 375px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.custom-dots {
  bottom: 16px !important;
}

.custom-dots li button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
}

.custom-dots li.ant-carousel-dot-active button {
  background-color: #fff;
}

/* 产品信息区域 */
.info-section {
  padding: 16px;
  background-color: #fff;
}

.product-title-section {
  margin-bottom: 16px;
}

.product-title {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  color: #333;
}

.product-subtitle {
  font-size: 14px !important;
  color: #666 !important;
  margin-bottom: 4px !important;
}

.product-description {
  font-size: 12px;
  color: #999;
  display: block;
  margin-bottom: 8px;
}

.features {
  margin-bottom: 16px;
}

.features-text {
  font-size: 12px;
  color: #666;
}

/* 价格区域 */
.price-section {
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.current-price {
  font-size: 20px !important;
  font-weight: bold !important;
  color: #ff4d4f !important;
}

.original-price {
  font-size: 14px !important;
  color: #999 !important;
}

.discount-tag {
  font-size: 10px !important;
  padding: 2px 4px !important;
  height: auto !important;
  line-height: 1 !important;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-text {
  font-size: 12px;
  color: #666;
}

.divider {
  margin: 16px 0 !important;
  border-color: #f0f0f0 !important;
}

/* 规格列表 */
.specs-section .ant-list {
  border: none;
}

.spec-item {
  padding: 12px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  cursor: pointer;
}

.spec-item:last-child {
  border-bottom: none !important;
}

.spec-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.spec-label {
  font-size: 14px;
  color: #333;
}

.spec-value-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-value {
  font-size: 14px;
  color: #666;
}

.spec-arrow {
  font-size: 12px;
  color: #ccc;
}

/* 底部操作栏 */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 8px 16px;
  z-index: 1000;
}

.bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-buttons {
  display: flex;
  gap: 16px;
}

.service-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px !important;
  height: auto !important;
  font-size: 10px;
  color: #666;
}

.service-btn .anticon {
  font-size: 18px;
  margin-bottom: 2px;
}

.purchase-buttons {
  display: flex;
  gap: 8px;
  flex: 1;
}

.add-cart-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: 1px solid #ff6600;
  color: #ff6600;
  background-color: #fff;
  font-size: 14px;
}

.buy-now-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6600, #ff8800);
  border: none;
  font-size: 14px;
}

/* 规格选择弹窗样式 */
.spec-modal .ant-modal-content {
  border-radius: 12px 12px 0 0;
}

.spec-modal .ant-modal-body {
  padding: 20px;
}

.spec-selector {
  width: 100%;
}

.selector-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

/* 颜色选择器 */
.color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.color-option.selected {
  border-color: #ff6600;
  background-color: #fff7f0;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
}

.color-circle.color-黑色 {
  background-color: #333;
}

.color-circle.color-白色 {
  background-color: #fff;
}

.color-circle.color-蓝色 {
  background-color: #1890ff;
}

.color-circle.color-绿色 {
  background-color: #52c41a;
}

.color-name {
  font-size: 12px;
  color: #666;
}

/* 存储容量选择器 */
.storage-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.storage-option {
  padding: 12px;
  text-align: center;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  color: #333;
}

.storage-option.selected {
  border-color: #ff6600;
  background-color: #fff7f0;
  color: #ff6600;
}

/* 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-bar {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}
